package com.example.demoeventspring.event;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 事件: 注册通知
 */
@Data
public class RegisterNotifyEvent implements Serializable {
    /**
     * 用户
     */
    private String user;
    /**
     * 用户 uid
     */
    private String uid;
    /**
     * 登录类型 前端用户， 后台管理员
     */
    private String type;
    /**
     * 时间
     */
    private Date time;

    /**
     *
     */
    public RegisterNotifyEvent(String user,String uid, String operator, Date time) {
        this.user = user;
        this.uid = uid;
        this.type = operator;
        this.time = time;
    }
}